package chapter_3;

import java.util.Scanner;

public  class Test15 {

    public static void main(String[] args) {

        Demo8.test();


//        {
//            int aa = 1;
//            System.out.println(aa);
//        }
//        Scanner scanner = new Scanner(System.in);
//        System.out.println("请输入纸张页数：");
//        String s = scanner.nextLine();
//        System.out.println(s);
//        boolean b = loadPaper(5);
//        System.out.println(b);
    }
    //装载纸张
    public static boolean loadPaper(int papers) {

        for (int i = 0; i < 10; i++) {
            for (int j = 0; j < 10; j++) {
                System.out.println(i);
            }
        }

        boolean isPaperOk = false;
        //查看是否有纸张
        System.out.println("用户放入的纸张页数为：" + papers);
        if (papers > 0) {
            System.out.println("装载纸张！");
            isPaperOk = true;
        } else {
            System.out.println("缺少纸张！");
        }
        return isPaperOk;
    }
}
